package com.wu.server;


import com.wu.server.spider.JdSpider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@SpringBootApplication
@EnableJpaAuditing

@EnableScheduling
//开启线程池注解
@EnableAsync
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
        System.out.println("服务器启动成功，端口号：8888");
//        JdSpider jdSpider = new JdSpider();
//        jdSpider.test();
//        jdSpider.start("电子书");
//        JdSearchSpider jdSearchSpider = new JdSearchSpider();
//        jdSearchSpider.start();
    }

}
